<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="/login_demo_war_exploded/login" method="post" >
    <table border="1" width="50%">
        <tr>
            <td>输入用户名</td>
            <td>
                <input type="text" name="username"  placeholder=""/>
            </td>
        </tr>
        <tr>
            <td>输入密码</td>
            <td>
                <input type="password" name="password"  placeholder=""/>
            </td>
        </tr>
        <tr>
            <td>验证码</td>
            <td>
                <input type="password" name="password"  placeholder=""/>
                <img id="imgId" src="/login_demo_war_exploded/checkcode" alt=""/>
                <a href="#" onclick="run()">看不清，换一张</a>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="submit" value="登陆"/>
            </td>
        </tr>
    </table>
</form>
</body>
<script type="text/javascript">
    function run(){
        var img=document.getElementById("imgId");
        img.src="/login_demo_war_exploded/checkcode?"+new Date().getTime();
    }
</script>
</html>